/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.miracleteam.miracle.services.servicesImpl;

import com.miracleteam.miracle.dao.TinTucGianHangDAO;
import com.miracleteam.miracle.dao.daoImpl.TinTucGianHangDAOImpl;
import com.miracleteam.miracle.entities.Tintuccuagianhang;
import com.miracleteam.miracle.services.TinTucGianHangService;
import java.util.List;

/**
 *
 * @author DangKhoa
 */
public class TinTucGianHangServiceImpl  implements TinTucGianHangService{

    public List LayDSTinTuc(String MaGH) {
       TinTucGianHangDAO ttDao=new TinTucGianHangDAOImpl();
       return ttDao.LayDSTinTuc(MaGH);
    }

    public Tintuccuagianhang LayTinTuc(String MaTT) {
          TinTucGianHangDAO ttDao=new TinTucGianHangDAOImpl();
       return ttDao.LayTinTuc(MaTT);
    }
      public List AllTinTuc(String MaGH) 
      {
           TinTucGianHangDAO ttDao=new TinTucGianHangDAOImpl();
         return ttDao.AllTinTuc(MaGH);
      }
    public boolean  CapNhatTT(Tintuccuagianhang tt){
           TinTucGianHangDAO ttDao=new TinTucGianHangDAOImpl();
           return ttDao.CapNhatTT(tt);
    }
     public String PhatSinhMaTT(){
           TinTucGianHangDAO ttDao=new TinTucGianHangDAOImpl();
           return ttDao.PhatSinhMaTT();
     }
    public boolean  ThemTinTuc(Tintuccuagianhang tt){
          TinTucGianHangDAO ttDao=new TinTucGianHangDAOImpl();
          return ttDao.ThemTinTuc(tt);
    }
}
